package cc.site.main.bean.dto;

import cc.site.main.bean.TblUser;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @CREATE By yangruomao On 2024/4/18 上午9:00
 */
@Data
public class OrderDto {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单类型：1寄养，2领养")
    private Integer type;

    @ApiModelProperty("宠物")
    private PetDto pet;

    @ApiModelProperty("订单发起人")
    private TblUser user;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtUpdate;
}
